set more off, permanently

global dbox "C:/Users/Castrodebritto/CLEAN Dropbox/Diogo Britto/"

global pabono "${dbox}/Data/Brazil_abono" // Data on cash grant beneficiaries
global pdo "${dbox}/Brazil_Cash_on_new/Do_restat" // Do-files folder
global pfile "${dbox}/Brazil_Cash_on_new/Log_restat" // Log file Outputs
global pgraph "${dbox}/Brazil_Cash_on_new/Graphs_restat" // Graph Outputs
global prais "${dbox}/Data/Rais Nova/" // Rais Data on formal labor
global pcenso "${dbox}/Data/Censo/"
global ppnad "${dbox}/Data/PNAD/"

global path "${dbox}Brazil_Cash_on_new/Data_restat" // Intermediate and final datasets saved here
cd "${path}"



do "${pdo}/A0_cash_prepare" // automatically calls A0_cash_prepare_additionalvars

do "${pdo}/A0_cash_prepare_recall" // Preparing data for Figure B1

do "${pdo}/A80_cash_allmonths_prep" // automatically calls A8_cash_prepare_additionalvars

do "${pdo}/B0_ui_prepare" // automatically calls B0_ui_prepare_additionalvars & B0_ui_prepare_weights

do "${pdo}/B5_empsept_prepare"

do "${pdo}/B5_survey_prepare" // automatically calls "${pdo}/B5_racemode"

do "${pdo}/C0_cash_did_prepare" // automatically calls C0_cash_did_prepare_additionalvars

do "${pdo}/main_tables" // prepares all tables in the paper, including online appendix

do "${pdo}/main_figures" // prepares all figures in the paper, including online appendix